CREATE TABLE IF NOT EXISTS users(
    pid SERIAL PRIMARY KEY NOT NULL,
    id UUID NOT NULL DEFAULT uuid_generate_v4(),
    matrix_id TEXT,
    telegram_id BIGINT,
    telegram_username TEXT,
    joined TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
    show_real_url BOOL NOT NULL DEFAULT FALSE,
    show_alternative_url BOOL NOT NULL DEFAULT FALSE
);